package com.wpan.gulimall.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/*
    API网关
        使用网关首先需要开启服务的注册与发现
        配置Nacos的注册中心地址

 */

@EnableDiscoveryClient
/*
    exclude = {DataSourceAutoConfiguration.class}
        exclude 忽略指定配置
            此忽略与数据源有关的配置
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class GulimallGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallGatewayApplication.class, args);
    }

}
